package com.b511.swpu.cementbackend.dto.output;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;


@Data
public class ParentOutDto {
    private String id;
    private String parentId;
    private String name;
    private List<ParentOutDto> children;



    public ParentOutDto(String id, String parentId, String name) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.children = new ArrayList<>();
    }
}
